import Vue from 'vue';
import App from './App.vue';

// 引入router
import router from '@/router'

// 引入vuex
import store from '@/common/store/index.js'
Vue.prototype.$store = store;

// 引入ElementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// 全局注册自定义方法
import api from '@/common/request/index.js'
Vue.prototype.$api = api;

import chart from '@/common/utils/chart.js'
Vue.prototype.$chart = chart;

import commonJs from '@/common/mixins/index.js'
Vue.mixin(commonJs);


// 全局注册自定义组件
import common_header from '@/components/common_header.vue';
Vue.component("common_header", common_header);




new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
});
